import request from '@/lib/request.js'

export default {
	// 订单列表
	orderLst(cond) {
		if(!cond) return;
		return request.get('/store/order/lst',{},true,cond)
	},
	// 订单详情
	orderDetail(id) {
		return request.get('/store/order/detail/'+id)
	},
	// 用户订单统计
	orderNumber() {
		return request.baseget('api/order/number')
	},
	// 订单核销
	orderVerify(id) {
		return request.post('/store/order/verify/'+id)
	},
	// 自提订单列表
	orderTakaeLst() {
		return request.get('/store/order/takelst')	
	},
	// 订单统计
	orderTakeChart() {
		return request.get('/store/order/takechart')
	},
	// 订单发货
	orderDelivery(data) {
		return request.post('/store/order/delivery/'+data.id,data)
	},
	// 快递接口查询/订单号id
	orderExpress(id,data) {
		return request.get('/store/order/express/'+id,data)
	},
	// 订单日志记录
	orderLog(id,data) {
		return request.get('/store/order/log/'+id,data)
	},
	// 退款列表
	refundOrderLst(cond) {
		return request.get('/store/refundorder/lst',{},true,cond)
	},
	// 退款详情
	refundOrderDetail(id) {
		return request.get('/store/refundorder/detail/'+id)
	},
	// 退款接口
	refundOrderStatus(id,data) {
		return request.post('/store/refundorder/status/'+id,data)
	},
	// 订单状态统计
	orderChart() {
		return request.get('/store/order/chart')
	}
}